<?xml version="1.0" encoding="utf-8"?>
<tasks>
  <task
		id="LinkTypes"
		name="LinkType definitions"
		plugin="Microsoft.ProjectCreationWizard.WorkItemTracking"
		completionMessage="Work item link types created">
    <taskXml>
      <LINKTYPES>
        <LINKTYPE fileName="WorkItemTracking\LinkTypes\SharedStep.xml"/>
        <LINKTYPE fileName="WorkItemTracking\LinkTypes\TestedBy.xml"/>
        <LINKTYPE fileName="WorkItemTracking\LinkTypes\FailedBy.xml"/>
        <LINKTYPE fileName="WorkItemTracking\LinkTypes\ImplementedBy.xml"/>
        <LINKTYPE fileName="WorkItemTracking\LinkTypes\ImpededBy.xml"/>
      </LINKTYPES>
    </taskXml>
  </task>
  <task 
    id="WITs" 
    name="WorkItemType definitions" 
    plugin="Microsoft.ProjectCreationWizard.WorkItemTracking" 
    completionMessage="WorkItemTypes created" 
    completionDescription="Processing work item types used by work item tracking">
    <dependencies>
      <dependency taskId="LinkTypes" />
    </dependencies>
    <taskXml>
      <WORKITEMTYPES>
        <WORKITEMTYPE fileName="WorkItemTracking\TypeDefinitions\TeamSprint.xml" />
        <WORKITEMTYPE fileName="WorkItemTracking\TypeDefinitions\ProductBacklogItem.xml" />
        <WORKITEMTYPE fileName="WorkItemTracking\TypeDefinitions\AcceptanceTest.xml" />
        <WORKITEMTYPE fileName="WorkItemTracking\TypeDefinitions\Bug.xml" />
        <WORKITEMTYPE fileName="WorkItemTracking\TypeDefinitions\SprintBacklogTask.xml" />
        <WORKITEMTYPE fileName="WorkItemTracking\TypeDefinitions\Impediment.xml" />
        <WORKITEMTYPE fileName="WorkItemTracking\TypeDefinitions\SprintRetrospective.xml" />
        <WORKITEMTYPE fileName="WorkItemTracking\TypeDefinitions\Sprint.xml" />
        <WORKITEMTYPE fileName="WorkItemTracking\TypeDefinitions\SharedStep.xml"/>
        <WORKITEMTYPE fileName="WorkItemTracking\TypeDefinitions\Release.xml" />
      </WORKITEMTYPES>
    </taskXml>
  </task>
  <task
		id="Categories"
		name="Categories definitions"
		plugin="Microsoft.ProjectCreationWizard.WorkItemTracking"
		completionMessage="Work item types created">
    <dependencies>
      <dependency taskId="WITs" />
    </dependencies>
    <taskXml>
      <CATEGORIES fileName="WorkItemTracking\Categories.xml"/>
    </taskXml>
  </task>
  <task id="Queries" name="Stored Query Definitions" plugin="Microsoft.ProjectCreationWizard.WorkItemTracking" completionMessage="Queries uploaded" completionDescription="Processing the stored queries used by work item tracking">
    <dependencies>
      <dependency taskId="Categories" />
    </dependencies>
    <taskXml>
      <QUERIES>
        <Permission allow="Read, Contribute, Delete, ManagePermissions, FullControl" identity="[SERVER]\$$TEAMFOUNDATIONADMINGROUP$$" />
        <Permission allow="Read, Contribute, Delete, ManagePermissions, FullControl" identity="[$$PROJECTNAME$$]\$$PROJECTADMINGROUP$$" />
        <Permission allow="Read, Contribute, Delete, ManagePermissions, FullControl" identity="$$CREATOR_OWNER$$" />
        <Permission allow="Read" identity="[$$PROJECTNAME$$]\Readers" />
        <Permission allow="Read" identity="[$$PROJECTNAME$$]\Contributors" />
        <Permission allow="Read" identity="[$$PROJECTNAME$$]\Build Services" />
        <QueryFolder name="Backlog Maintenance">
          <Query name="All Acceptance Tests (ATs)" fileName="WorkItemTracking\Queries\Backlog Maintenance\All Acceptance Tests (ATs).wiq" />
          <Query name="All PBIs and Links" fileName="WorkItemTracking\Queries\Backlog Maintenance\All PBIs and Links.wiq" />
          <Query name="All Product Backlog Items (PBIs)" fileName="WorkItemTracking\Queries\Backlog Maintenance\All Product Backlog Items (PBIs).wiq" />
          <Query name="Bugs (Ignored)" fileName="WorkItemTracking\Queries\Backlog Maintenance\Bugs (Ignored).wiq" />
          <Query name="PBIs (Descoped)" fileName="WorkItemTracking\Queries\Backlog Maintenance\PBIs (Descoped).wiq" />
          <Query name="PBIs (Requiring ATs)" fileName="WorkItemTracking\Queries\Backlog Maintenance\PBIs (Requiring ATs).wiq" />
          <Query name="PBIs (Requiring Estimation)" fileName="WorkItemTracking\Queries\Backlog Maintenance\PBIs (Requiring Estimation).wiq" />
        </QueryFolder>
        <QueryFolder name="Cadence and Teams">
          <Query name="All Releases" fileName="WorkItemTracking\Queries\Cadence and Teams\All Releases.wiq" />
          <Query name="All Sprints" fileName="WorkItemTracking\Queries\Cadence and Teams\All Sprints.wiq" />
          <Query name="All Team Sprints" fileName="WorkItemTracking\Queries\Cadence and Teams\All Team Sprints.wiq" />
          <Query name="Release, Sprint &amp; Team Tree" fileName="WorkItemTracking\Queries\Cadence and Teams\Release, Sprint &amp; Team Tree.wiq" />
          <Query name="Release, Sprint &amp; Team" fileName="WorkItemTracking\Queries\Cadence and Teams\Release, Sprint &amp; Team.wiq" />
        </QueryFolder>
        <QueryFolder name="General Queries">
          <Query name="All Bugs" fileName="WorkItemTracking\Queries\General Queries\All Bugs.wiq" />
          <Query name="All Impediments" fileName="WorkItemTracking\Queries\General Queries\All Impediments.wiq" />
          <Query name="All Shared Steps" fileName="WorkItemTracking\Queries\General Queries\All Shared Steps.wiq" />
          <Query name="All Sprint Backlog Tasks (SBTs)" fileName="WorkItemTracking\Queries\General Queries\All Sprint Backlog Tasks (SBTs).wiq" />
          <Query name="All Sprint Retrospective Items" fileName="WorkItemTracking\Queries\General Queries\All Sprint Retrospective Items.wiq" />
        </QueryFolder>
        <QueryFolder name="Sprint Planning">
          <Query name="PBIs &amp; Links (by Sprint &amp; Team)" fileName="WorkItemTracking\Queries\Sprint Planning\PBIs &amp; Links (by Sprint &amp; Team).wiq" />
          <Query name="PBIs (Ready for Sprint Planning)" fileName="WorkItemTracking\Queries\Sprint Planning\PBIs (Ready for Sprint Planning).wiq" />
          <Query name="PBIs and Tasks" fileName="WorkItemTracking\Queries\Sprint Planning\PBIs and Tasks.wiq" />
        </QueryFolder>
        <QueryFolder name="Sprinting">
          <Query name="Acceptance Tests (Failing)" fileName="WorkItemTracking\Queries\Sprinting\Acceptance Tests (Failing).wiq" />
          <Query name="Acceptance Tests (Ready For Test)" fileName="WorkItemTracking\Queries\Sprinting\Acceptance Tests (Ready For Test).wiq" />
          <Query name="Bugs (Active)" fileName="WorkItemTracking\Queries\Sprinting\Bugs (Active).wiq" />
          <Query name="Bugs (Orphans)" fileName="WorkItemTracking\Queries\Sprinting\Bugs (Orphans).wiq" />
          <Query name="Impediments (Open)" fileName="WorkItemTracking\Queries\Sprinting\Impediments (Open).wiq" />
          <Query name="My Impediments" fileName="WorkItemTracking\Queries\Sprinting\My Impediments.wiq" />
          <Query name="My Work" fileName="WorkItemTracking\Queries\Sprinting\My Work.wiq" />
          <Query name="PBIs &amp; Links (by Sprint &amp; Team)" fileName="WorkItemTracking\Queries\Sprinting\PBIs &amp; Links (by Sprint &amp; Team).wiq" />
          <Query name="PBIs (Broken)" fileName="WorkItemTracking\Queries\Sprinting\PBIs (Broken).wiq" />
          <Query name="PBIs (In Progress)" fileName="WorkItemTracking\Queries\Sprinting\PBIs (In Progress).wiq" />
          <Query name="Tasks (SBTs) Not Done" fileName="WorkItemTracking\Queries\Sprinting\Tasks (SBTs) Not Done.wiq" />
        </QueryFolder>
        <Query name="Recycle Bin" fileName="WorkItemTracking\Queries\Recycle Bin.wiq" />
      </QUERIES>
    </taskXml>
  </task>
</tasks>